package com.waidi.clothespad.common;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ll on 2018-08-28.
 */

public class WorkerInfo implements Parcelable {

    public String name ;
    public String id;
    public String line;
    public String logontime;

    public WorkerInfo()
    {
        name = null;
        id = null;
        line = null;
        logontime = null;
    }
    public  WorkerInfo(Parcel in)
    {
        //顺序要和writeToParcel写的顺序一样
        name = in.readString();
        id =in.readString();
        line = in.readString();
        logontime =  in.readString();
    }
    @Override
    public int describeContents() {
        // TODO Auto-generated method stub
        return 0;
    }
    @Override
    public void writeToParcel(Parcel dest, int flags)
    {
        dest.writeString(name);
        dest.writeString(id);
        dest.writeString(line);
        dest.writeString(logontime);

    }

    public static final Parcelable.Creator<WorkerInfo> CREATOR = new Parcelable.Creator<WorkerInfo>() {
        public WorkerInfo createFromParcel(Parcel in) {
            return new WorkerInfo(in);
        }

        public WorkerInfo[] newArray(int size) {
            return new WorkerInfo[size];
        }
    };

}
